package seatiger.tomcat.catalina.startup;

import seatiger.tomcat.catalina.core.StandardServer;

public class Bootstrap {
    // http://127.0.0.1:8080/myNameContext/test1
    // http://127.0.0.1:8080/myNameContext2/test1
    // http://localhost:8080/myNameContext/test1
    public static void main(String[] args) throws Exception{
        System.setProperty("catalina.base",System.getProperty("user.dir"));
        Catalina catalina = new Catalina();
        catalina.process();
        StandardServer server = (StandardServer) catalina.server;
        server.initialize();
        server.start();
        server.await();
        server.stop();
    }
}
